using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content.Pipeline;
using Microsoft.Xna.Framework.Content.Pipeline.Graphics;

namespace XDLPipeline
{
    /// <summary>
    /// Converts a weapon information XML file into a content stream.
    /// </summary>
    [ContentImporter(".weapon", DisplayName = "Weapon Definition Importer", DefaultProcessor = "WeaponSettingsProcessor")]
    public class WeaponSettingsImporter : ContentImporter<WeaponSettingsContent>
    {
        public override WeaponSettingsContent Import(string filename, ContentImporterContext context)
        {
            XmlImporter xi = new XmlImporter();
            return (WeaponSettingsContent)xi.Import(filename, context);
        }
    }
}
